CausalNetMemory
Extends:
This class is under experimented
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public set |
|
|
| public get |
Memory: * |
|
| public get |
MemorySize: * |
|
| public set |
|
|
| public get |
NumSlots: * |
|
| public |
R: * |
|
| public get |
SlotSize: * |
|
| public |
memory: * |
|
| public |
memorySize: * |
|
Method Summary
| Public Methods | ||
| public |
async getMatchScore(slotIdxs: *): * |
|
| public |
async getTopKSimilar(slotIdxs: *, k: *): * |
|
| public |
async initMemory(size: *, initTensor: undefined): * |
|
| public |
async normalize(): * |
|
| public |
async readSlots(slotIndexs: *): * |
|
| public |
async writeSlots(slotIdxs: *, memoryTensor: *): * |
|
Inherited Summary
| From class Tensor | ||
| public get |
CoreTensor: * This method return the core tensor instance |
|
| public |
T: * |
|
| public |
isTensor(object: Object ): Boolean Check if object is tensor |
|
Public Constructors
Public Members
public set Memory source
public get Memory: * source
public get MemorySize: * source
public set MemorySize source
public get NumSlots: * source
public R: * source
public get SlotSize: * source
public memory: * source
public memorySize: * source
Public Methods
public async getMatchScore(slotIdxs: *): * source
Params:
| Name | Type | Attribute | Description |
| slotIdxs | * |
Return:
| * |
public async getTopKSimilar(slotIdxs: *, k: *): * source
Params:
| Name | Type | Attribute | Description |
| slotIdxs | * | ||
| k | * |
Return:
| * |
public async initMemory(size: *, initTensor: undefined): * source
Params:
| Name | Type | Attribute | Description |
| size | * | ||
| initTensor | undefined |
|
Return:
| * |
public async readSlots(slotIndexs: *): * source
Params:
| Name | Type | Attribute | Description |
| slotIndexs | * |
Return:
| * |
public async writeSlots(slotIdxs: *, memoryTensor: *): * source
Params:
| Name | Type | Attribute | Description |
| slotIdxs | * | ||
| memoryTensor | * |
Return:
| * |